  
CC = gcc
# -lfftw3
CFLAGS = -Wall  -I ../ -I ./none_use/ -I ./log_lib  -lm  -O1 -g 
INCLUDE = ../ ./none_use/
DEPS = nh_spo2.h assit_func.h mem_ctrl.h nh_base_alg.h kalman_flt.h ./none_use/test_sig_gen.h  ./log_lib/log.h
OBJ = main.o nh_spo2.o assit_func.o mem_ctrl.o nh_base_alg.o kalman_flt.o ./none_use/test_sig_gen.o ./log_lib/log.o
 



%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)
main: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS)

.PHONY: run
run: main
	clear
	./main

clean:
	rm -f *.o  ./none_use/*.o main ./log_lib/*.o

